package com.security.controllers;

import com.security.dal.model.AppDO;
import com.security.dal.model.TestDO;
import com.security.service.ServiceTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Created by Tom on 2018/10/19.
 */
@Controller
@RequestMapping("test")
public class TestControllers {


    @Autowired
    private ServiceTest serviceTest;

    @RequestMapping("apps")
    @ResponseBody
    public List<TestDO> queryApps(){
        return serviceTest.queryAll();
    }

}
